package models

import "time"

type History struct {
	ID         int       `gorm:"primaryKey;autoIncrement;comment:编号"`
	GoldId     int       `gorm:"column:gold_id;comment:服务器"`
	Sort       int       `gorm:"column:sort;comment:服务器"`
	Offer      string    `gorm:"default:offer;comment:供给"`
	Price      float64   `gorm:"type:decimal(12,8);comment:价格"`
	Currency   string    `gorm:"default:USD;comment:货币"`
	CreatedAt  time.Time `gorm:"column:created_at"`
	UpdatedAt  time.Time `gorm:"column:updated_at"`
	CreateTime int64     `gorm:"column:create_time"`
	UpdateTime int64     `gorm:"column:update_time"`
}

func (s *History) TableName() string {
	return "yf_g2g_history"
}
